package com.freesky.biz.activity.mapper;

import com.freesky.biz.activity.domain.TActivityConfig;
import com.freesky.biz.activity.domain.TActivityConfigRules;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityConfigMapper {

    public TActivityConfig get(String id);

    public List<TActivityConfig> findList(TActivityConfig entity);

    public int insert(TActivityConfig entity);

    public int update(TActivityConfig entity);

    /**
     * 批量删除参数信息
     *
     * @param ids 需要删除的参数ID
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    //规则
    public int addActivityRules(TActivityConfigRules activityRulesModel);

    public int updateActivityRules(TActivityConfigRules activityRulesModel);

    public TActivityConfigRules getActivityRulesById(@Param("id") String id);

    public List<TActivityConfigRules> getActivityRulesByActivityId(@Param("activityId") String activityId);

    public int deleteActivityRulesById(@Param("id") String id);

}
